package model;

public class Electronics extends Product {
    private String brand;

    public Electronics(String pid, String name, double price, String brand) {
        super(pid, name, price);
        this.brand = brand;
    }

    public String getBrand() { return brand; }

    @Override
    public String getDescription() {
        return getBasicInfo() + ", 类别:电子产品, 品牌:" + brand;
    }

    public void showSpecs() {
        System.out.println("【" + getName() + "】规格：品牌：" + brand);
    }
}